home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 April
/
EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso
/
EARCD
/
comm
/
ums
/
IntuiNews1_4a.lha
/
UMS
/
Rexx
/
UUDecode.intui
< prev
Wrap
Text File
|
1995-08-27
|
2KB
|
80 lines
/*
$VER: UUDecode.intui 1.0 (27.8.95)
Author:
Matthias Scheler (tron@lyssa.owl.de)
Function:
uudecodes a file, even if it is distributed in several messages
History:
0.1 internal version
0.2 internal version
0.3 internal version
0.4 first public release of IntuiNews 1.3 Beta 3
0.5 adapted to IntuiNews 1.3 Beta 5
0.6 cosmetic changes
0.7 removed SAY calls
0.8 decided to get rid of this strange AMOK style header and
went back to my good old standard
0.9 fixed version string
0.10 fixed header
1.0 released with IntuiNews 1.3
Requires:
"uudecode" in command path of ARexx
Example for "ums.config":
( IntuiNews.Rexx
...
"(Article|Message)Window F2 UUDecode.intui T:\n"
...
)
*/
PARSE ARG Directory
/* get IntuiNews's message number */
OPTIONS RESULTS
/* If Message Window is active ... */
STATUS
IF RESULT="MESSAGE" THEN
DO
/* ... save current message. */
GETMSGNUM
MsgList=RESULT
END
ELSE
/* If Article Window is active ... */
IF RESULT="ARTICLE" THEN
DO
/* ... save all selected messages, useful for splitted messages. */
GETSELMSGNUMS
IF RESULT="RESULT" THEN EXIT 5
MsgList=RESULT
END
/* Exit otherwise. */
ELSE EXIT 5
/* start uudecode reading from a pipe ... */
CALL PRAGMA('Directory',Directory)
SHELL COMMAND 'Run >NIL: uudecode PIPE:UUDecode'
/* ... and save message bodies to this pipe. */
'SAVEMSGBODY' MsgList 'TO PIPE:UUDecode'